package edu.egypt.timepickerdialogsample;

import android.app.Activity;
import android.app.TimePickerDialog;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class TimePickerDialogSampleActivity extends Activity implements OnClickListener {
    private Button button;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        button = (Button)findViewById(R.id.button1);
        button.setOnClickListener(this);
    }

	@Override
	public void onClick(View v) {
		TimePickerDialog tpDialog = new TimePickerDialog(this, null, 12, 00, true);
		tpDialog.show();
		
	}
}